package com.ruoyi.eduManage.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 系统邮箱配置对象 sys_mail_config
 * 
 * @author ruoyi
 * @date 2025-11-04
 */
public class SysMailConfig extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** SMTP主机 */
    @Excel(name = "SMTP主机")
    private String smtpHost;

    /** SMTP端口 */
    @Excel(name = "SMTP端口")
    private Long smtpPort;

    /** 发件邮箱 */
    @Excel(name = "发件邮箱")
    private String sendFrom;

    /** 用户名 */
    @Excel(name = "用户名")
    private String sendUsername;

    /** 邮箱授权码 */
    @Excel(name = "邮箱授权码")
    private String sendVerifyCode;

    /** 是否激活(1激活,0未激活) */
    @Excel(name = "是否激活(1激活,0未激活)")
    private Integer isActive;

    /** 是否激活名称（字典映射：yes_or_no） */
    private String isActiveName;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setSmtpHost(String smtpHost) 
    {
        this.smtpHost = smtpHost;
    }

    public String getSmtpHost() 
    {
        return smtpHost;
    }

    public void setSmtpPort(Long smtpPort) 
    {
        this.smtpPort = smtpPort;
    }

    public Long getSmtpPort() 
    {
        return smtpPort;
    }

    public void setSendFrom(String sendFrom) 
    {
        this.sendFrom = sendFrom;
    }

    public String getSendFrom() 
    {
        return sendFrom;
    }

    public void setSendUsername(String sendUsername) 
    {
        this.sendUsername = sendUsername;
    }

    public String getSendUsername() 
    {
        return sendUsername;
    }

    public void setSendVerifyCode(String sendVerifyCode) 
    {
        this.sendVerifyCode = sendVerifyCode;
    }

    public String getSendVerifyCode() 
    {
        return sendVerifyCode;
    }

    public void setIsActive(Integer isActive) 
    {
        this.isActive = isActive;
    }

    public Integer getIsActive() 
    {
        return isActive;
    }

    public String getIsActiveName() {
        return isActiveName;
    }

    public void setIsActiveName(String isActiveName) {
        this.isActiveName = isActiveName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("smtpHost", getSmtpHost())
            .append("smtpPort", getSmtpPort())
            .append("sendFrom", getSendFrom())
            .append("sendUsername", getSendUsername())
            .append("sendVerifyCode", getSendVerifyCode())
            .append("isActive", getIsActive())
            .append("isActiveName", getIsActiveName())
            .append("remark", getRemark())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
